package HP.com.book.wangyu.util;

public class PrintUI {
    public static void printMenu() {
        System.out.println("---------------------------------------------------------");
        System.out.println("\t\t\t图书管路系统主页面");
        System.out.println("1.添加图书");
        System.out.println("2.查看所有图书");
        System.out.println("3.删除图书");
        System.out.println("4.修改图书信息");
        System.out.println("5.退出系统");
        System.out.println("请选择(1-5):");
    }

    public static void printLogin(int ui) {

        if (ui == 1) {
            System.out.println("-----------------------------------------");
            System.out.println("\t\t\t图书管路系统登录页面");
            System.out.println("用户名:");
        } else {
            System.out.println("密 码:");
        }
    }

    public static void printBookAdd(int ui) {


        if (ui == 0) {
            System.out.println("---------------------------------------------------------");
            System.out.println("\t\t\t图书管路系统添加图书页面");
        } else if (ui == 1) {
            System.out.println("请输入--编号:");
        } else if (ui == 2) {
            System.out.println("请输入--书名:");
        } else if (ui == 3) {
            System.out.println("请输入--作者:");
        } else if (ui == 4) {
            System.out.println("请输入--分类:");
        } else if (ui == 5) {
            System.out.println("请输入--价格:");
        }
    }

    public static void printListStart() {
        System.out.println("编 号\t\t书名\t\t作者\t\t分类\t\t价格\t\t");
        System.out.println("---------------------------------------------------------");
    }

    public static void printBookDelect(int ui) {
        if (ui == 1) {
            System.out.println("---------------------------------------------------------");
            System.out.println("\t\t\t图书管路系统添加图书页面");
            System.out.println("输入图书名称:");
        } else {
            System.out.println("确认删除吗?(y/n)");
        }
    }

    public static void printBookUpdate(int ui) {
        if (ui == 0) {
            System.out.println("---------------------------------------------------------");
            System.out.println("\t\t\t图书管路系统修改图书页面");
            System.out.println("输入要修改的图书书名:");
        } else if (ui == 1) {
            System.out.println("该图书旧信息如下:");
        } else if (ui == 2) {
            System.out.println("请输入--编号:");
        } else if (ui == 3) {
            System.out.println("请输入--书名:");
        } else if (ui == 4) {
            System.out.println("请输入--作者:");
        } else if (ui == 5) {
            System.out.println("请输入--分类:");
        } else if (ui == 6) {
            System.out.println("请输入--价格:");
        }

    }

}
